const path = require('path')


module.exports = (key) => {
  return {
    mode: 'development',
    entry: {
      a: {
        filename: 'test-a.js',
        import: path.resolve(__dirname, 'module-a.js'),
      },
      b: path.resolve(__dirname, 'module-b.js')
    },
    output: {
      path: path.resolve(__dirname, `../../dist/${key}`),
      filename: `[name].bundle.js`,
      // 5.20 新增属性 替代原有的插件
      clean: true
    },
    plugins: []
  }
};
